package javaseof10day.day5.am;

import java.util.Calendar;

public class StringArrayDemo {

	public static void main(String[] args) {

	//字符串数组
		

		 String[] weekarr={"星期天","星期一","星期二","星期三","星期四","星期五","星期六"};
		 
		 
			Calendar calendar = Calendar.getInstance();
			
			int num = calendar.get(Calendar.DAY_OF_WEEK) - 1;
		 
		String week = weekarr[num];
		
		
		System.out.println(week);
	}

}
